package com.backstage.web;

import com.backstage.pojo.dto.Message;
import com.backstage.pojo.vo.SysSelectVo;
import com.backstage.service.SysUtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 所有下拉框列表查询的信息
 */
@RestController
public class SysUtilController {
    @Autowired
    SysUtilService sysUtilService;

    @GetMapping("/select/sex")
    public Message<List<SysSelectVo>> selectsex(Long id) {
        return sysUtilService.selectSex(id);
    }

    @GetMapping("/select/state")
    public Message<List<SysSelectVo>> selectstate(Long id) {
        return sysUtilService.selectState(id);
    }

    @GetMapping("/select/type")
    public Message<List<SysSelectVo>> selecttype(Long id) {
        return sysUtilService.selectType(id);
    }

    @GetMapping("/select/userInfo/type")
    public Message<List<SysSelectVo>> selectUserInfoType(Long id) {
        return sysUtilService.selectUserInfoType(id);
    }
}
